<?php
/**
 * The loop that displays posts.
 *
 * The loop displays the posts and the post content.  See
 * http://codex.wordpress.org/The_Loop to understand it and
 * http://codex.wordpress.org/Template_Tags to understand
 * the tags used in it.
 *
 * This can be overridden in child themes with loop.php or
 * loop-template.php, where 'template' is the loop context
 * requested by a template. For example, loop-index.php would
 * be used if it exists and we ask for the loop with:
 * <code>get_template_part( 'loop', 'index' );</code>
 *
 */
 
// Get latest entry
$args = array_merge( $wp_query->query, array( 'orderby' => 'title', 'posts_per_page' => -1, 'order' => 'ASC'  ) );
//print_r($args);
query_posts( $args ); ?>

<?php /* If there are no posts to display, such as an empty archive page */ ?>
<?php if ( ! have_posts() ) : ?>
	<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', ns_text_domaine ); ?></p>
<?php endif; ?>

<ul id="word_loop">
	<?php while (have_posts()) : the_post(); ?>
				<li><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'See entry %s', ns_text_domaine ), the_title_attribute( 'echo=0' ) ); ?>"><?php the_title(); ?></a></li>
	<?php endwhile; 
			
	// Reset Query
	wp_reset_query();?>
</ul>
